home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
Think C dcmd 1.0 ƒ
/
Think Put Lib source
/
PutUHexLong.c
< prev
next >
Wrap
Text File
|
1994-06-12
|
291b
|
15 lines
void PutText(const char* s, int len );
void __HexToText (unsigned long hex, char* str, short size /* 0=word, 1=long */ );
void PutUHexLong (unsigned long i, int nz)
{
char* str = "00000000";
if ( nz > 0 && nz <= 8 )
{
__HexToText (i, str, 1 );
PutText( &str[8-nz], nz );
}
}